package org.igorno12.util.logging.test;

import org.igorno12.util.logging.JULLevelWrapper;
import org.igorno12.util.logging.Log4jLevelWrapper;
import org.testng.annotations.DataProvider;

public class LogLevelDataProvider {

	@DataProvider(name = "log4j")
	public static Object[][] createLog4jLevelData() {
		final Log4jLevelWrapper[] values = Log4jLevelWrapper.values();
		final Object[][] dataset = new Object[values.length][1];
		for(int i = 0; i < values.length; i++)  {
			dataset[i][0] = values[i];
		}
		return dataset;
	}
	
	@DataProvider(name = "jul")
	public static Object[][] createJulLevelData() {
		final JULLevelWrapper[] values = JULLevelWrapper.values();
		final Object[][] dataset = new Object[values.length][1];
		for(int i = 0; i < values.length; i++)  {
			dataset[i][0] = values[i];
		}
		return dataset;
	}

	public LogLevelDataProvider() {
		super();
	}

}
